#include "playMessageHandler.h"
#include "playMessage.h"
#include "opResMessage.h"
#include "playHandler.h"

void PlayMessageHandler::handle(MtpMessage* message, const IPaddress& attachment)
{
    PlayMessage* msg = (PlayMessage*)message;
    PlayHandler handle;
    handle(msg->getMovieId(),msg->getScene());
    OpResMessage p(true, msg);
    p.send(attachment);
}

MtpMessage* PlayMessageHandler::decode(MtpProtocol* packet, const IPaddress& attachment)
{
    return new PlayMessage((MtpProtocol*)packet);
}
